/* -----------------------------------------------------------------------------
 * PROJECT    : net.lwf
 * FILE       : SortingObject.java
 *
 * HISTORY:
 * Date          Author                        Description
 * ----------------------------------------------------------------------------- 
 * Jan 5, 2009       Raghu Sarraff			       Created
 */
package lwf.handler.entities;

/**
 * Type the class description here
 *  
 */

public class SortingObject implements Comparable {
	
	private String key;
	private Object value;
	
	

	/**
	 * @param key
	 * @param value
	 */
	public SortingObject(String key, Object value) {
		this.key = key;
		this.value = value;
	}
	
	/**
	 * @return Returns the key.
	 */
	public String getKey() {
		return key;
	}

	/**
	 * @return Returns the value.
	 */
	public Object getValue() {
		return value;
	}
	
	/**
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo(Object o) {
        SortingObject kv = (SortingObject) o;
	    int i = key.compareTo(kv.key);
		return i;
	}
}

